package cn.ssm.petadopt.service;

import cn.ssm.petadopt.dto.DouPassword;
import cn.ssm.petadopt.dto.PwdSettingDTO;
import cn.ssm.petadopt.dto.ResisterDTO;
import cn.ssm.petadopt.dto.UserLoginDTO;
import cn.ssm.petadopt.entity.User;
import cn.ssm.petadopt.util.ResponseResult;

import javax.servlet.http.HttpSession;

/**
 * @Autheor: Sun俊仪
 * @Date: 2022 2022/12/17 11:20
 * @Name: PetSystem
 */
public interface UserService {

    // 注册查重用户名
    ResponseResult judgeUserName(String userName);

    ResponseResult judgePwd(DouPassword douPassword);

    ResponseResult registerUser(ResisterDTO resisterDTO, HttpSession session);

    ResponseResult loginU(UserLoginDTO userLoginDTO, HttpSession session);

    ResponseResult updateU(User user);

    ResponseResult selectShowSetting(String userName);

    ResponseResult updatePwdSet(PwdSettingDTO pwdSettingDTO,HttpSession session);
}
